-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ui.footer #1100
base: main
Are you sure you want to change the base?
feat: ui.footer #1100
Conversation
variant="info", | ||
footer=ui.link("Download support logs"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd group the footer together with the heading/content, rather than having the variant in the middle.
variant="info", | |
footer=ui.link("Download support logs"), | |
footer=ui.link("Download support logs"), | |
variant="info", |
plugins/ui/docs/components/footer.md
Outdated
|
||
## Slots | ||
|
||
`ui.footer` is intended to be used in container components with layouts that provide a slot for `ui.footer` (and other supported elements). These components handle the layout and styling of such elements for you. See [`ui.dialog`](./dialog.md#content) and [`ui.contextual_help`](./contextual_help#example) for more detailed examples. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`ui.footer` is intended to be used in container components with layouts that provide a slot for `ui.footer` (and other supported elements). These components handle the layout and styling of such elements for you. See [`ui.dialog`](./dialog.md#content) and [`ui.contextual_help`](./contextual_help#example) for more detailed examples. | |
`ui.footer` is intended to be used in container components with layouts that provide a slot for `ui.footer` (and other supported elements). These components handle the layout and styling of such elements for you. See [`ui.dialog`](./dialog.md#content) and [`ui.contextual_help`](./contextual_help#example) for examples of a footer used in the context of a container. |
plugins/ui/docs/components/footer.md
Outdated
```python | ||
from deephaven import ui | ||
|
||
|
||
my_footer_order_example = ui.dialog( | ||
ui.heading("Customer Support Request"), | ||
ui.content( | ||
"We have received your support request and are currently reviewing it. Our team will get back to you soon." | ||
), | ||
ui.footer( | ||
"Ticket ID: #123456 | Status: In Progress | Support email: [email protected]" | ||
), | ||
) | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example is weird, because we're not using a dialog like a dialog (triggering it and opening it), it's just appearing in a panel.
I'd just get rid of this example, it's fine to refer to Dialog/ContextualHelp for other examples.
```python | |
from deephaven import ui | |
my_footer_order_example = ui.dialog( | |
ui.heading("Customer Support Request"), | |
ui.content( | |
"We have received your support request and are currently reviewing it. Our team will get back to you soon." | |
), | |
ui.footer( | |
"Ticket ID: #123456 | Status: In Progress | Support email: [email protected]" | |
), | |
) | |
``` |
Closes #878